/**
 * Created by Administrator on 2017/6/28.
 */
(function ($) {
    var option = {duration: 'slow', queue: false};
    $.fn.slideFadeIn = function () {
        $(this).fadeIn(option).slideDown(option);
    };

    $.fn.slideFadeOut = function () {
        $(this).fadeOut(option).slideUp(option);
    };
})(jQuery);

$(document).ready(function () {
    $('h1').slideFadeOut();
    setTimeout(function () {
        $('h1').slideFadeIn();
    }, 1000);
});